* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.main-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.control-panel {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    min-width: 320px;
    max-width: 350px;
}

.control-panel h3 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.vector-input,
.vector-list,
.coordinate-settings,
.export-section {
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #4a5568;
}

.input-group input[type="text"],
.input-group input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.input-group input[type="text"]:focus,
.input-group input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group input[type="color"] {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.input-group input[type="range"] {
    width: 80%;
    margin-right: 10px;
}

.input-group input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 8px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.canvas-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    flex: 1;
}

#coordinateCanvas {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: crosshair;
    display: block;
    margin: 0 auto;
}

.canvas-info {
    text-align: center;
    margin-top: 15px;
    color: #718096;
    font-size: 14px;
}

.vector-item {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vector-info {
    flex: 1;
}

.vector-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.vector-coords {
    font-size: 12px;
    color: #718096;
}

.vector-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #e2e8f0;
}

.vector-actions {
    display: flex;
    gap: 5px;
}

.btn-small {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-delete {
    background: #fed7d7;
    color: #c53030;
}

.btn-delete:hover {
    background: #feb2b2;
}

.empty-state {
    text-align: center;
    color: #a0aec0;
    font-style: italic;
    padding: 20px;
}

.export-buttons {
    display: flex;
    gap: 10px;
}

.export-buttons .btn-primary {
    flex: 1;
    font-size: 13px;
    padding: 10px 15px;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .control-panel {
        max-width: 100%;
    }
    
    #coordinateCanvas {
        width: 100%;
        height: auto;
    }
}